# ifndef __ComPort_H_
# define __ComPort_H_

# include "Wrappers.h"

class CComPort : public CFile {
  public:
	CComPort (const char * _strPort, DWORD _dwAccess = GENERIC_READ | GENERIC_WRITE);

	void ClearQueues ();
	void SetDCB (DWORD _dwBaudRate, BYTE _btByteSize = 8, bool _bParity = false, BYTE _btStopBits = ONESTOPBIT);
	size_t GetInQueueSize () const;
};

# endif // __ComPort_H_